#pragma once
class CListMsg;
class DBSession;
class DBClient
{
public:
	DBClient(SOCKET s);
	~DBClient(void);
	DWORD	AddRecvMsg(tagMessage* pMsg, DWORD dwSize);
	tagMessage*	GetRecvMsg();
	int		GetRecvNums();
	void	ClearRecvMsg();

	DWORD	AddSendMsg(tagMessage* pMsg, DWORD dwSize);
	tagMessage*	GetSendMsg();
	int		GetSendNums();
	void	ClearSendMsg();

	DWORD	HandleMessage();
public:
	SOCKET		m_Socket;
private:
	CListMsg*	m_pListRecvMsg;
	CListMsg*	m_pListSendMsg;
	DBSession*	m_pDBSession;
};
